﻿using System;
using cfg.level;

namespace QFramework.Monk
{
    public class ExpUpItem:IController
    {
        
        public SkillItem mSkillItem;
        
        private Action<ExpUpItem> mUpgradeAction;
        
        private ConfigModel mConfigModel;
        
        public void OnUpgrade()
        {
            mUpgradeAction?.Invoke(this);
        }

        public ExpUpItem InitSkillItem(SkillItem skillItem)
        {
            mSkillItem = skillItem;
            return this;
        }
        
        public ExpUpItem WithUpgradeAction(Action<ExpUpItem> upgradeAction)
        {
            mUpgradeAction = upgradeAction;
            return this;
        }
        
        public IArchitecture GetArchitecture()
        {
            return  AppStart.Interface;
        }
    }
}